package com.geekgo.ladder.core.listener;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author geekgo
 * @version 2016/12/20 16:46
 */
public class ServerListener implements ServletContextListener {

    protected final Logger LOG = LogManager.getLogger();

    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {

    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        LOG.info("======================================");
        LOG.info("系统[{}]启动完成！！！",servletContextEvent.getServletContext().getServletContextName());
        LOG.info("======================================");
    }
}
